//
//  Define.h
//  TheProjectName
//
//  Created by 李劲成 on 16/5/19.
//  Copyright © 2016年 sunzhichao. All rights reserved.
//

#ifndef Define_h
#define Define_h


#pragma mark - ScreenSize

#define SCREEN_BOUNDS [UIScreen mainScreen].bounds
#define SCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#pragma mark - ViewBoundsSize

#define BOUNDS_WIDTH(VIEW) VIEW.bounds.size.width
#define BOUNDS_HEIGHT(VIEW) VIEW.bounds.size.height


#pragma mark - ViewFrameSize

#define FRAME_WIDTH(VIEW) VIEW.frame.size.width
#define FRAME_HEIGHT(VIEW) VIEW.frame.size.height

#define BARBUTTONTITLE(TITLE, TARGET, ACTION)[[UIBarButtonItem alloc]initWithTitle:TITLE style:UIBarButtonItemStyleDone target:TARGET action:ACTION]

#define BARBUTTONIMAGE(IMAGE, TARGET, ACTION)[[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:IMAGE] style:UIBarButtonItemStyleDone target:TARGET action:ACTION]


#endif /* Define_h */
